package vn.co.thn.web.hotvideo.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import vn.co.thn.web.hotvideo.common.ControllerBase;
import vn.co.thn.web.hotvideo.model.CategoryModel;
import vn.co.thn.web.hotvideo.model.VideoModel;

@SuppressWarnings("serial")
public class Review extends ControllerBase {
	private CategoryModel categoryModel = new CategoryModel();
	@Override
	protected void Get(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		request.setAttribute("categorylist", categoryModel.getList());
		VideoModel videoModel = new VideoModel(30);
		videoModel.setPage(0);
		request.setAttribute("datalist", videoModel.getReview());
		Forward("index");
	}

	@Override
	protected void Post(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub

	}

}
